﻿using TuxedoLib;

namespace SpaceSquirrel.SpriteRenderers
{
	class GravityDeviceRenderer : SpriteRenderer
	{
		public override void Render(Sprite sprite, PlayScene scene, Image screen, int offsetX, int offsetY, int renderCounter)
		{
			int left = sprite.x + offsetX - 8;
			int top = sprite.y + offsetY - 8;
			int i = (renderCounter % 3) + 1;
			screen.Blit(ImageLibrary.GetImage("sprites/gravity_device_" + i + ".png"), left, top);
		}
	}
}
